#include <iostream>
using namespace std;
int main()
{
	//int *p = new int(5);	//创建一个单个int对象，并赋初值5
	int *p = new int[5]{1,2,3,4};	//创建数组，使用{}附初值，未赋值默认为0
	for(int i = 0;i<5;i++)
	{
		cout << p[i] << ",";
	}
	cout << endl;
	delete[] p;
	return 0;
}
